class FirmwareLoader:
    def load(self, firmware_path: str):
        """加载固件"""
        with open(firmware_path, 'rb') as f:
            firmware = f.read()
        # 调用内核API写入固件